package JavaPractice;

public class gai_cuo_ti_7_5 {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.shout();
        Dog dog = new Dog();
        dog.shout();
        dog.run();
    }

}

class Animal {
    void shout() {
        System.out.println("animal shout！");
    }
}

class Dog extends Animal {
    void shout() {
        System.out.println("wangwang……");
    }
    void run() {
        System.out.println("Dog is running");
    }
}
